package com.ruoyi.bpm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bpm.mapper.BpmOrderMapper;
import com.ruoyi.bpm.domain.BpmOrder;
import com.ruoyi.bpm.service.IBpmOrderService;

/**
 * 订单信息Service业务层处理
 * 
 * @author pjq
 * @date 2025-03-17
 */
@Service
public class BpmOrderServiceImpl implements IBpmOrderService 
{
    @Autowired
    private BpmOrderMapper bpmOrderMapper;

    /**
     * 查询订单信息
     * 
     * @param orderId 订单信息主键
     * @return 订单信息
     */
    @Override
    public BpmOrder selectBpmOrderByOrderId(Long orderId)
    {
        return bpmOrderMapper.selectBpmOrderByOrderId(orderId);
    }

    /**
     * 查询订单信息列表
     * 
     * @param bpmOrder 订单信息
     * @return 订单信息
     */
    @Override
    public List<BpmOrder> selectBpmOrderList(BpmOrder bpmOrder)
    {
        return bpmOrderMapper.selectBpmOrderList(bpmOrder);
    }

    /**
     * 新增订单信息
     * 
     * @param bpmOrder 订单信息
     * @return 结果
     */
    @Override
    public int insertBpmOrder(BpmOrder bpmOrder)
    {
        return bpmOrderMapper.insertBpmOrder(bpmOrder);
    }

    /**
     * 修改订单信息
     * 
     * @param bpmOrder 订单信息
     * @return 结果
     */
    @Override
    public int updateBpmOrder(BpmOrder bpmOrder)
    {
        return bpmOrderMapper.updateBpmOrder(bpmOrder);
    }

    /**
     * 批量删除订单信息
     * 
     * @param orderIds 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmOrderByOrderIds(Long[] orderIds)
    {
        return bpmOrderMapper.deleteBpmOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单信息信息
     * 
     * @param orderId 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmOrderByOrderId(Long orderId)
    {
        return bpmOrderMapper.deleteBpmOrderByOrderId(orderId);
    }
}
